<?php
class basketitemdao extends CI_Model{
	function __construct()
	{
		// Call the Model constructor
		parent::__construct();
	}

	public function getbyid($id){
		$this->db->select('*');
		$this->db->from('basket_item');
		$this->db->where('basket_item_id',$id);
		$query = $this->db->get();
		$market = $query->row();
		return $market;
	}
	
	public function get_all(){
		$this->db->select('*');
		$this->db->from('basket_item');
		$query = $this->db->get();
		$basket_items = $query->result();
		return $basket_items;
	}
}
?>